QT       +=  core widgets gui

TEMPLATE = lib
DEFINES += CFDPOSTUTILS_LIBRARY
CONFIG  +=  qt
CONFIG  += c++11
TARGET  =  CFDPostUtils

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

# Default rules for deployment.
unix {
    target.path = /usr/lib
}
!isEmpty(target.path): INSTALLS += target

include(./CFDPostUtils.pri)

win32{

    INCLUDEPATH    +=  ./   \
                       ../  \
                       ../../  \

    Release:DESTDIR         = ../../output/bin
    Release:MOC_DIR         = ../../generate/CFDPostUtils/release/moc
    Release:RCC_DIR         = ../../generate/CFDPostUtils/release/rcc
    Release:UI_DIR          = ../../generate/CFDPostUtils/release/qui
    Release:OBJECTS_DIR     = ../../generate/CFDPostUtils/release/obj
    Release:LIBS +=  \
        -L../../output/bin  \

    Debug:CONFIG            +=  console
    Debug:DESTDIR         = ../../output/bin_d
    Debug:MOC_DIR         = ../../generate/CFDPostUtils/debug/moc
    Debug:RCC_DIR         = ../../generate/CFDPostUtils/debug/rcc
    Debug:UI_DIR          = ../../generate/CFDPostUtils/debug/qui
    Debug:OBJECTS_DIR     = ../../generate/CFDPostUtils/debug/obj
    Debug:LIBS +=  \
        -L../../output/bin_d \

    message("Windows CFDPostUtils generated")
}

unix{

    INCLUDEPATH    +=   ./  \
                        ../ \
                        ../../  \

    CONFIG          += console
    CONFIG          += plugin
    DESTDIR         = ../../output/bin
    MOC_DIR         = ../../generate/CFDPostUtils/release/moc
    UI_DIR          = ../../generate/CFDPostUtils/release/qui
    RCC_DIR         = ../../generate/CFDPostUtils/release/rcc
    OBJECTS_DIR     = ../../generate/CFDPostUtils/release/obj
    LIBS += \
        -L../../output/bin \
        # -lCFDStructDataManager

    message("Linux CFDPostUtils generated")
}

